/**
 * 发票管控
 */
import React, { Component } from 'react';
import { connect } from 'react-redux'
import { messages } from "share/common"
import CardList from '../card-list'

class InvoiceControl extends Component {

  moreItems = [{
    key: 'receipt_owner',
    itemName: messages('request-and-expense-settings.key65')/*发票归属人校验*/,
    description: messages('request-and-expense-settings.key66')/*可校验发票与费用所属人是否一致*/,
    defaultValueDesc: messages('request-and-expense-settings.key67')/*默认不启用*/,
    pageKey: 'invoice-check-detail'
  }, {
    key: 'receipt_overtime',
    itemName: messages('request-and-expense-settings.key68')/*发票过期管控*/,
    description: messages('request-and-expense-settings.key69')/*可设定发票逾期规则*/,
    defaultValueDesc: messages('request-and-expense-settings.key67')/*默认不启用*/,
    pageKey: 'invoice-overtime-detail'
  }];

  render() {
    return (
      <CardList
        itemIds={['3', '1027161632266518530', '996642904355127298', '1017390098660823042', '4']}
        moreItems={this.moreItems}
        pageKey="invoice-control-detail"
      />
    )
  }
}

function mapStateToProps(state) {
  return { }
}

export default connect(mapStateToProps)(InvoiceControl)
